.loginContainer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  min-height: 100%;
}


.loginCard {
  width: 100%;
  width: 450px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.loginHeader {
  text-align: center;
  margin-bottom: 2rem;
}

.loginTitle {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
  margin: 0 0 0.5rem 0;
}

.loginSubtitle {
  font-size: 0.875rem;
  color: var(--foreground-tertiary);
  margin: 0;
}

.loginForm {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.formGroup {
  display: flex;
  flex-direction: column;
}

.errorMessage {
  padding: 0.75rem 1rem;
  background-color: var(--destructive-foreground);
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: var(--destructive);
  font-size: 0.875rem;
  text-align: center;
  animation: shake 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.errorMessage::before {
  content: "⚠️";
  font-size: 1rem;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.loginOptions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -0.5rem;
}

.rememberMe {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--foreground-tertiary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.rememberMe:hover {
  color: var(--foreground);
}

.rememberMe input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rememberMe input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.forgotPassword {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  transition: all 0.2s ease;
}

.forgotPassword:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

.loginButton {
  width: 100%;
  margin-top: 0.5rem;
  transition: all 0.2s ease;
}

.loginButton:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.signupPrompt {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--foreground-tertiary);
}

.signupLink {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.25rem;
  transition: all 0.2s ease;
}

.signupLink:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* 隐藏浏览器自带的密码显示图标 */
.formGroup input[type="password"]::-ms-reveal,
.formGroup input[type="password"]::-ms-clear {
  display: none;
}

.formGroup input[type="password"]::-webkit-credentials-auto-fill-button {
  display: none !important;
}

.formGroup input[type="password"]::-webkit-strong-password-auto-fill-button {
  display: none !important;
}

/* 隐藏所有浏览器的密码相关图标 */
.formGroup input[type="password"] {
  -webkit-text-security: disc;
}

/* 针对不同浏览器的密码图标隐藏 */
.formGroup input[type="password"]::-webkit-outer-spin-button,
.formGroup input[type="password"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .loginContainer {
    padding: 1rem;
  }
  
  .loginCard {
    padding: 2rem;
    border-radius: 12px;
  }
  
  .loginTitle {
    font-size: 1.5rem;
  }
  
  .loginOptions {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
